package com.xh.xyzp.domain.vo;

import com.xh.xyzp.exception.ApiException;
import lombok.Data;

@Data
public class NoticeSubmitReq {
    private Long id;
    private String title;
    private String content;

    public void checkParams() {
        if (title == null || title.trim().isEmpty()) {
            throw new ApiException("标题不能为空");
        }
        if (content == null || content.trim().isEmpty()) {
            throw new ApiException("内容不能为空");
        }
    }
} 